import 'package:get/get.dart';

class DatePickerDemoState {
  // title
  final _title = "".obs;
  set title(value) => _title.value = value;
  get title => _title.value;

  String? calendarText;
  String? calendarSingleText;
  DateTime? date1;
  DateTime? date2;
  DateTime? date3;
  DateTime? date4;
  DateTime? date5;
  DateTime? date6;
  DateTime? date7;
  DateTime? date8;
  DateTime? date9;
  String? date9Str;
}

enum ChartType { line, bar, pie, scatter, radar }

extension ChartTypeExtension on ChartType {
  String get displayName => '$simpleName Chart';

  String get simpleName => switch (this) {
        ChartType.line => 'Line',
        ChartType.bar => 'Bar',
        ChartType.pie => 'Pie',
        ChartType.scatter => 'Scatter',
        ChartType.radar => 'Radar',
      };

  // String get documentationUrl => Urls.getChartDocumentationUrl(this);

  // String get assetIcon => AppAssets.getChartIcon(this);
}
